package org.yu.register;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
import org.yu.Yu;

public class SoundEventRegistry {
    private static final DeferredRegister<SoundEvent> register = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, Yu.MODID);
    public static final RegistryObject<SoundEvent> nbAttack = register.register("nb_attack", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "nb_attack")));
    public static final RegistryObject<SoundEvent> dlkQs = register.register("dlk_qs", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_qs")));
    public static final RegistryObject<SoundEvent> dlkPx = register.register("dlk_px", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_px")));
    public static final RegistryObject<SoundEvent> dlkLy = register.register("dlk_ly", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_ly")));
    public static final RegistryObject<SoundEvent> dlkA1 = register.register("dlk_a1", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_a1")));
    public static final RegistryObject<SoundEvent> dlkA2 = register.register("dlk_a2", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_a2")));
    public static final RegistryObject<SoundEvent> dlkA3 = register.register("dlk_a3", () -> new SoundEvent(new ResourceLocation(Yu.MODID, "dlk_a3")));
    public static void init(){
        register.register(FMLJavaModLoadingContext.get().getModEventBus());
    }
}
